import Koa from "koa";
import Router from "koa-router";

const app=new Koa()
const router=new Router()

router.get('/',async ctx=>{
    ctx.body=`<h1>Hello world</h1>`
})

app.use(router.routes(),router.allowedMethods())

const PORT=process.env.PORT||5000
app.listen(PORT,()=>console.log(`serve started at ${PORT}`))